<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> 
		<link rel="stylesheet" href="css/common.css" />
		<link rel="stylesheet" type="text/css" href="css/connect_us.css">
		<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
		<script type="text/javascript" src="js/angular.min.js" ></script>
		<script type="text/javascript" src="js/global.js"></script>
		<title>联系我们</title>
	</head>
	<body>
	<header>
		<span class="return"><a href="javascript:void(0)" onclick="javascript :history.go(-1)"><img src="image/返回.png"></a></span>
		<span class="sign_header">关于我们</span>
	</header>
	<div class="container">
		<div class="head">
			<img src="image/组 31--.png">
			<span>农博士</span>
		</div>
		<div id="article"></div>
		<div style="width:100%;height:10px;background:#F0F0F0;"></div>
		<div id="connect_us">
			<p>联系我们</p>
		
		</div>
	</div>
	<script type="text/javascript">
		$(function(){
			$.ajax({
        		type:"get",
       	 		contentType: "application/x-www-form-urlencoded",     
        		url:host+"/terminal/aboutUs/loadPlatformIntro",
        		xhrFields: {withCredentials: true},
        		crossDomain: true,
        		beforeSend:function(){
                	$("#article").text('加载。。')
        		},
        		success:function(data){
          		//console.log(data)
          			if(data.code==2000){
            			$("#article").html(data.data.info.platformIntro);
          			}else{
            			alert(data.message);
          			}
        		},
        		error:function(){
          			alert('交互异常');
        		}
      		});
				// 联系我们
      		$.ajax({
        		type:"get",
       	 		contentType: "application/x-www-form-urlencoded",     
        		url:host+"/terminal/aboutUs/loadContact",
        		xhrFields: {withCredentials: true},
        		crossDomain: true,
        		
        		success:function(data){
          		//console.log(data)
          			if(data.code==2000){
            			$("#connect_us").append("<p><img src='image/公司-关于.png'>"
            				+ data.data.info.companyName
            				+"</p><p><img src='image/电话-关于.png'>"
            				+data.data.info.phone
            				+"</p><p><img src='image/地址-关于.png'>"
            				+data.data.info.address
            				+"</p><p><img src='image/邮箱 -关于.png'>"
            				+data.data.info.email
            				+"</p>");
          			}else{
            			alert(data.message);
          			}
        		},
        		error:function(){
          			location.reload();
        		}
      		});
		})
	</script>

	</body>
</html>